// Generated with smithy-dart 0.3.2. DO NOT MODIFY.
// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name

library rest_json1_v1.rest_json_protocol.model.query_params_as_string_list_map_input; // ignore_for_file: no_leading_underscores_for_library_prefixes

import 'package:aws_common/aws_common.dart' as _i2;
import 'package:built_collection/built_collection.dart' as _i3;
import 'package:built_value/built_value.dart';
import 'package:built_value/serializer.dart';
import 'package:meta/meta.dart' as _i4;
import 'package:smithy/smithy.dart' as _i1;

part 'query_params_as_string_list_map_input.g.dart';

abstract class QueryParamsAsStringListMapInput
    with
        _i1.HttpInput<QueryParamsAsStringListMapInputPayload>,
        _i2.AWSEquatable<QueryParamsAsStringListMapInput>
    implements
        Built<
          QueryParamsAsStringListMapInput,
          QueryParamsAsStringListMapInputBuilder
        >,
        _i1.EmptyPayload,
        _i1.HasPayload<QueryParamsAsStringListMapInputPayload> {
  factory QueryParamsAsStringListMapInput({
    String? qux,
    Map<String, List<String>>? foo,
  }) {
    return _$QueryParamsAsStringListMapInput._(
      qux: qux,
      foo: foo == null ? null : _i3.BuiltListMultimap(foo),
    );
  }

  factory QueryParamsAsStringListMapInput.build([
    void Function(QueryParamsAsStringListMapInputBuilder) updates,
  ]) = _$QueryParamsAsStringListMapInput;

  const QueryParamsAsStringListMapInput._();

  factory QueryParamsAsStringListMapInput.fromRequest(
    QueryParamsAsStringListMapInputPayload payload,
    _i2.AWSBaseHttpRequest request, {
    Map<String, String> labels = const {},
  }) => QueryParamsAsStringListMapInput.build((b) {
    if (request.queryParameters['corge'] != null) {
      b.qux = request.queryParameters['corge']!;
    }
  });

  static const List<
    _i1.SmithySerializer<QueryParamsAsStringListMapInputPayload>
  >
  serializers = [QueryParamsAsStringListMapInputRestJson1Serializer()];

  String? get qux;
  _i3.BuiltListMultimap<String, String>? get foo;
  @override
  QueryParamsAsStringListMapInputPayload getPayload() =>
      QueryParamsAsStringListMapInputPayload();

  @override
  List<Object?> get props => [qux, foo];

  @override
  String toString() {
    final helper =
        newBuiltValueToStringHelper('QueryParamsAsStringListMapInput')
          ..add('qux', qux)
          ..add('foo', foo);
    return helper.toString();
  }
}

@_i4.internal
abstract class QueryParamsAsStringListMapInputPayload
    with _i2.AWSEquatable<QueryParamsAsStringListMapInputPayload>
    implements
        Built<
          QueryParamsAsStringListMapInputPayload,
          QueryParamsAsStringListMapInputPayloadBuilder
        >,
        _i1.EmptyPayload {
  factory QueryParamsAsStringListMapInputPayload([
    void Function(QueryParamsAsStringListMapInputPayloadBuilder) updates,
  ]) = _$QueryParamsAsStringListMapInputPayload;

  const QueryParamsAsStringListMapInputPayload._();

  @override
  List<Object?> get props => [];

  @override
  String toString() {
    final helper = newBuiltValueToStringHelper(
      'QueryParamsAsStringListMapInputPayload',
    );
    return helper.toString();
  }
}

class QueryParamsAsStringListMapInputRestJson1Serializer
    extends
        _i1.StructuredSmithySerializer<QueryParamsAsStringListMapInputPayload> {
  const QueryParamsAsStringListMapInputRestJson1Serializer()
    : super('QueryParamsAsStringListMapInput');

  @override
  Iterable<Type> get types => const [
    QueryParamsAsStringListMapInput,
    _$QueryParamsAsStringListMapInput,
    QueryParamsAsStringListMapInputPayload,
    _$QueryParamsAsStringListMapInputPayload,
  ];

  @override
  Iterable<_i1.ShapeId> get supportedProtocols => const [
    _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'),
  ];

  @override
  QueryParamsAsStringListMapInputPayload deserialize(
    Serializers serializers,
    Iterable<Object?> serialized, {
    FullType specifiedType = FullType.unspecified,
  }) {
    return QueryParamsAsStringListMapInputPayloadBuilder().build();
  }

  @override
  Iterable<Object?> serialize(
    Serializers serializers,
    QueryParamsAsStringListMapInputPayload object, {
    FullType specifiedType = FullType.unspecified,
  }) => const <Object?>[];
}
